package demo07.remote.object;

/**
 * 灯
 * */
public class Light {
	String location = "";//位置

	public Light(String location) {//构造器
		this.location = location;
	}

	public void on() {
		System.out.println(location + " 灯亮了");
	}

	public void off() {
		System.out.println(location + " 灯灭了");
	}

}
